<?php
/*
 * @Author: your name
 * @Date: 2020-12-23 12:01:16
 * @LastEditTime: 2020-12-28 10:12:25
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /special/application/adminapiv3/service/module_manage/hgshield/NormalRule.php
 */

namespace app\adminapiv3\service;


use app\common\service\HostNormalRuleRelation;

class NormalRule extends BaseService
{
    /**
     * @name 列表
     * @param $host_id
     * @param $group_id
     * @param $params
     * @return array
     * @author wx
     * @date 2019/11/12 14:52
     */
    public function list($host_id, $group_id, $params)
    {
        $server = new \app\common\service\NormalRule();
        $list = $server->list($host_id, $group_id, $params);

        return $list;
    }

    /**
     * @name 修改
     * @param $id
     * @param $params
     * @return int|string
     * @author wx
     * @date 2019/11/12 14:54
     */
    public function modify($host_id, $id, $params)
    {
        $server = new HostNormalRuleRelation();
        $condition[] = array('id', 'in', $id);
        $res = $server->modify($condition, $params);

        return $res;
    }
}